package A1;
import java.io.*;

/**
 * Created by IntelliJ IDEA.
 * User: Ferdy
 * Date: 31 Mar 11
 * Time: 13:59:01
 * To change this template use File | Settings | File Templates.
 */
public class GetUserInput {
    /**get the user input*/
    public static String userChoice (String sub){
        System.out.print(sub);
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
       String getChoice = null;
       try {
         getChoice = br.readLine();
         System.out.println("Inside getUserChoice()");
         System.out.println("The user input : " + getChoice);}
       catch (IOException e) {
         System.out.println("Error!");
         System.exit(1);
       }
      return getChoice;
    }
}
